﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
using System.Data;

namespace BUS
{
    public class DOCGIABUS
    {

        public DataTable Loaddocgia(string madocgia)
        {
            DOCGIADAO dgDAO = new DOCGIADAO();
            return dgDAO.Loaddocgia(madocgia);
        }

        public int update(string sql, DataTable datatable)
        {
            DOCGIADAO dgDAO = new DOCGIADAO();
            return dgDAO.update(sql, datatable);
        }
        public int themdocgia(DOCGIADTO dgDTO)
        {
            DOCGIADAO dgDAO = new DOCGIADAO();
            return dgDAO.themdocgia(dgDTO);
        }

        public string madocgia(string maloai)
        {
            DOCGIADAO dgDAO = new DOCGIADAO();
            return dgDAO.MaDocGia(maloai);
        }

        public DataTable Loaddocgia()
        {
            DataTable datatble = new DataTable();
            DOCGIADAO dgDAO = new DOCGIADAO();
            datatble = dgDAO.Loaddocgia();
            return datatble;
        }
    }
}
